#pragma once

#include <SFML/Graphics.hpp>
#include <vector>

using namespace std;

class seLifeBar
{
private:
	const float mMaxValue;
	float mCurrentValue;
	float mDecreaseSpeed; 
	float mDisplayWidth;
	int mBarLength; 

	vector<sf::Sprite> mBubbles;
	sf::Image mBubbleImage;

	sf::Image mBarFill;
	sf::Image mBarCover;

	sf::Sprite mBarFillSprite;
	sf::Sprite mBarCoverSprite;

	float fCounter;

public:
	seLifeBar(void);
	~seLifeBar(void);

	void Load();
	//void Unload();
	void Init();
	void Step();
	void Draw();
	void SetDecreaseSpeed(float decreaseSpeed);
	void IncreaseDecreaseSpeed(float delta);
	void DesreseSpeedOfBliding(float delta);
	void SetCurrentValue(float currentValue);
	void SetDisplayWidth(float displayWidth);
	float GetCurrentValue();
	float GetMaxValue();

};
